<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title></title>

    <!-- Bootstrap -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
<form action="{:U('Student/edit')}" method="post" style="margin:40px auto;width:40%;">
  <div class="form-group">
    <label for="user_name">用户名</label>
    <input type="text" class="form-control" id="user_name" placeholder="用户名" value="{$M.user_name}" readonly="true">
  </div>
  <div class="form-group">
    <label for="name">姓名</label>
    <input type="text" class="form-control" id="name" placeholder="姓名" name="name" value="{$M.name}">
  </div>
  <div class="form-group">
    <label for="password">密码</label>
    <input type="password" class="form-control" id="password" placeholder="密码" name="password">
  </div>
  <div class="form-group">
    <label for="repassword">密码</label>
    <input type="password" class="form-control" id="repassword" placeholder="重复密码" name="repassword">
  </div>
  <div class="form-group">
    <label for="repassword">班级</label>
    <select name="class_id" id="class_id" class="form-control">
      <foreach name="classes" item="itm">
        <option value="{$itm.id}" <if condition="$itm.id eq $M.class_id">selected</if>>{$itm.name}</option>
      </foreach>
    </select>
    <input type="hidden" name="id" value="{$M.id}">
  </div>
  <button type="submit" class="btn btn-default">更改</button>
</form>
    
  </body>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</html>
